From: Joey Hess Date: Fri, 7 Mar 2025 20:06:37 +0000 (-0400) Subject: use pwd and quote it X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~104 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=18be4910d880dcb5ce187c9a160a07a551455b36;p=git-annex.git use pwd and quote it Seems more portable and safe --- diff --git a/doc/special_remotes/compute/git-annex-compute-wasmedge b/doc/special_remotes/compute/git-annex-compute-wasmedge index 0c361c6230..c20f7824a8 100755 --- a/doc/special_remotes/compute/git-annex-compute-wasmedge +++ b/doc/special_remotes/compute/git-annex-compute-wasmedge @@ -43,5 +43,5 @@ if [ -n "$wasm" ]; then # Use --force-interpreter to avoid wasmedge running AOT native # instructions, which is insecure if the WASM binary comes from # an untrusted source. - wasmedge --dir /:$PWD --force-interpreter -- "$wasm" "$@" >&2 + wasmedge --dir "/:`pwd`" --force-interpreter -- "$wasm" "$@" >&2 fi